# == Schema Information
#
# Table name: permissions
#
#  id            :bigint(8)        not null, primary key
#  name          :string(255)      not null
#  label         :string(255)
#  des           :string(255)
#  kind          :integer          default(0), not null
#  display_order :integer          default(0)
#  has_son       :integer          default(0), not null
#  created_at    :datetime         not null
#  updated_at    :datetime         not null
#  menus_id      :bigint(8)
#

class Permission < ApplicationRecord
# 弃用
  has_many :permission_assigments, dependent: :destroy
  has_one :permission_url

  has_many :roles, through: :permission_assigments
end
